package diaosidadui.demo;

public class test01 {
    public static void main(String[] args) {
        int[] arr = {11,222,33,44,55,325,23};


        orderArr(arr);
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }


    }


    public static void orderArr(int[] arr){
        for (int i = 0; i < arr.length-1; i++) {
            //arr[i]
            for (int j = 0; j < arr.length-1-i; j++) {
                if(arr[j]>arr[j+1]){
                    int temp =arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }




            }





        }







    }


}
